if (the memberNum of sprite mysprt = 221) and (random(3) = 1) then
setAt(mnv, mymnv, 6)
set the memberNum of sprite mysprt to 225
set the memberNum of sprite (mysprt + 2) to the number of member ("cheese" & mysprt - 14)
end if
end
on throweron mysprt, mymnv
global mnv, cheese, ppl, fxpath, pwr
if getAt(mnv, mymnv) > 1 then
set the memberNum of sprite mysprt to the memberNum of sprite mysprt + 1
setAt(mnv, mymnv, getAt(mnv, mymnv) - 1)
if getAt(mnv, mymnv) = 4 then
put 2 + random(4) into item mysprt - 12 of cheese
put 12 into item mysprt - 14 of cheese
if sprite(mysprt).flipH = 1 then
set the locH of sprite (mysprt + 2) to the locH of sprite mysprt + 40
else
set the locH of sprite (mysprt + 2) to the locH of sprite mysprt - 40
end if
else
if getAt(mnv, mymnv) = 1 then
set the memberNum of sprite mysprt to 221
setAt(mnv, mymnv, 0)
end if
end if
end if
if value(item mysprt - 14 of cheese) > 1 then
put value(item mysprt - 14 of cheese) - 1 into item mysprt - 14 of cheese
if sprite(mysprt).flipH = 1 then
set the locH of sprite (mysprt + 2) to the locH of sprite (mysprt + 2) + (7 * value(item mysprt - 12 of cheese))
else
set the locH of sprite (mysprt + 2) to the locH of sprite (mysprt + 2) - (5 * value(item mysprt - 12 of cheese))
end if
if (value(item mysprt - 14 of cheese) < 8) and sprite getAt(ppl, 1) intersects (mysprt + 2) and (the memberNum of sprite getAt(ppl, 1) < 37) and not soundBusy(3) then